package com.cskaoyan.mapper.impl;

import com.cskaoyan.bean.Account;
import com.cskaoyan.mapper.AccountMapper;
import com.cskaoyan.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class AccountMapperImpl implements AccountMapper {

    @Override
    public Account selectAccountById(Integer id) {

        SqlSession sqlSession = MybatisUtils.getSqlSession();

        Account account = sqlSession.selectOne("cskaoyan.selectAccountById", id);

        return account;
    }
}
